import Vue from 'vue';
import Router from 'vue-router';
import index from '@/components/index';
import main from '@/components/main';
import news from '@/components/news';
// import jieshao from '@/components/jieshao';
import recruit from '@/components/recruit';
import news_detail from '@/components/news_detail';
import position from '@/components/position';
import jsxq from '@/components/jsxq';

Vue.use(Router);

export default new Router({
  routes: [
    {
      path: '/',
      name: 'index',
      component: index,
      redirect: '/main',
      children: [
        {
          path: '/main',
          name: 'main',
          component: main,
        },
        {
          path: '/news',
          name: 'news',
          component: news,
        },
        // {
        //   path: '/jieshao',
        //   name: 'jieshao',
        //   component: jieshao,
        // },
        {
          path: '/recruit',
          name: 'recruit',
          component: recruit,
        },
      ],
    },
    {
      path: '/news_detail/',
      name: 'news_detail',
      component: news_detail,
    },
    {
      path: '/jsxq/',
      name: 'jsxq',
      component: jsxq,
    },
    {
      path: '/position/',
      name: 'position',
      component: position,
    },
  ],
});
